Skip to content

fix: Resolve passkey login failures with ArrayBuffer conversion and s…#1

Open
DKoenig9 wants to merge 1 commit intomainfrom
DEV-1367
Open

fix: Resolve passkey login failures with ArrayBuffer conversion and s…#1
DKoenig9 wants to merge 1 commit intomainfrom
DEV-1367

Conversation

@DKoenig9
Copy link
Contributor

…ession handling

  • Convert allowCredentials[].id from base64url strings to ArrayBuffer before passing to WebAuthn API, fixing "The provided value is not of type (ArrayBuffer or ArrayBufferView)" error on repeated passkey logins
  • Fetch user data via get-session with cookies BEFORE switching to JWT mode, fixing redirect loop when verify-authentication returns session without user object
  • Await switchToJwtMode() to ensure JWT token is available for subsequent API calls (e.g., list-user-passkeys on security settings page)

…ession handling

- Convert allowCredentials[].id from base64url strings to ArrayBuffer
  before passing to WebAuthn API, fixing "The provided value is not of
  type (ArrayBuffer or ArrayBufferView)" error on repeated passkey logins
- Fetch user data via get-session with cookies BEFORE switching to JWT
  mode, fixing redirect loop when verify-authentication returns session
  without user object
- Await switchToJwtMode() to ensure JWT token is available for subsequent
  API calls (e.g., list-user-passkeys on security settings page)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@DKoenig9 DKoenig9 requested a review from kaihaase January 27, 2026 07:39
@DKoenig9 DKoenig9 self-assigned this Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant